/**
 * Created by Administrator on 2018/4/23.
 * 获取服务器接口
 */
import {MYHISTORYAJAXURL} from "../commons/MyHistoryListAjaxURL"
import {MYHISTORYFOODAJAXURL} from "../commons/MyHistoryListAjaxURL"
import {MYHEADLISTAJAXURL} from "../commons/MyHistoryListAjaxURL"
export default class MyHistoryListApi {
  static getMyHistoryList(cb) {
    fetch(MYHISTORYAJAXURL).then((response)=>{
      response.json().then((data)=>{
        cb(data);
      })
    })
  }
  static getMyHistoryFoodList(cb) {
    fetch(MYHISTORYFOODAJAXURL).then((response)=>{
      response.json().then((data)=>{
        cb(data);
      })
    })
  }
  static getMyHistoryHeadList(cb) {
    fetch(MYHEADLISTAJAXURL).then((response)=>{
      response.json().then((data)=>{
        cb(data);
      })
    })
  }
}
